public class MyStringBuffer {
    public static void main(String[] args) {
    String str="JAVA真是麻烦";
    char[] charArray=str.toCharArray();
    System.out.println(str);
    StringBuffer strBuild=new StringBuffer();
    for (char c:charArray){
        System.out.println(c);
        strBuild.append((int)c+" ");
    }
   System.out.println(strBuild.toString());
    }
    public static String getType(Object test) {
        return test.getClass().getName().toString();

    }


}
